package com.iran.decorator.example2;

/**
 * 装饰
 */
public abstract class Decorator extends MilkTea {
    protected MilkTea milkTea;

    public Decorator(MilkTea milkTea) {
        this.milkTea = milkTea;
    }

    @Override
    public int getPrice() {
        return milkTea.getPrice();
    }

    @Override
    public String getName() {
        return milkTea.getName();
    }
}
